﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using LitJson;

public class JsonObjectAnalysis
{
    public static T ReadJsonStr<T>(string jsonStr)
    {
        var fromObject = JsonMapper.ToObject<T>(jsonStr);
        return fromObject;
    }

    public static string Object2JsonStr(System.Object serObject )
    {
        return JsonMapper.ToJson(serObject);
    }

}
